home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Tools / Languages / RLaB 1.15c / help / INTRO < prev    next >
Encoding:
Text File  |  1994-10-10  |  8.5 KB  |  102 lines  |  [TEXT/RLAB]

  1. INTRO:
  2.  
  3.     Introduction to RLaB  "Our"-LaB.
  4.  
  5.     RLaB is a vector and matrix oriented, interactive, interpreted
  6.     programming LANGUAGE. Although RLaB started as an effort to
  7.     functionally replace MATLAB, the language and functions are
  8.     NOT MATLAB replicas. Although the language is similar to
  9.     MATLAB in some ways there are numerous differences (I hope for
  10.     the better). The help file MATLAB_DIFF briefly discusses the
  11.     primary differences between RLaB and MATLAB. If you are a
  12.     MATLAB expert please read the MATLAB_DIFF file ASAP.
  13.  
  14.     The RLaB Primer is also a good starting point for new users.
  15.     It is short, and provides many introductory examples.
  16.  
  17.     Using RLaB:
  18.  
  19.     To get this far you must already be running RLaB. At this
  20.     point you are using the command line interface. When RLaB
  21.     confronts you with the command line prompt (`>') it is ready
  22.     to accept any valid statement. As soon as a valid statement is
  23.     recognized, RLaB will execute it. For example
  24.  
  25.     > a = sqrt(2)
  26.      a =
  27.          1.41
  28.  
  29.     The right-hand-side (RHS) of the expression is evaluated, and
  30.     the result is assigned to `a' immediately.
  31.  
  32.     There are several data types. You do NOT need to declare
  33.     variable types, just use them (the variable(s)) in the proper
  34.     context. In the previous example `a' was a scalar. In the
  35.     following example `a' will be used as a matrix:
  36.  
  37.     > a = [1,2,3;4,5,6;7,8,9]
  38.      a =
  39.      matrix columns 1 thru 3
  40.                1           2           3
  41.                4           5           6
  42.                7           8           9
  43.  
  44.     The previous example created a matrix and stored it in the
  45.     variable (entity) `a'. The previous entity that `a'
  46.     represented (sqrt(2)) is destroyed.
  47.  
  48.     You can use most math operators like you would in C:
  49.  
  50.     a + b        Addition
  51.     a - b        Subtraction
  52.     a * b        Matrix Multiplication
  53.     a .* b        Matrix element-by-element multiply
  54.     a / b        Right Division
  55.     a ./ b        Element-by-element Right Division
  56.     a \ b        Left Division
  57.     a .\ b        Element-by-element Left Division
  58.     a^b        Power
  59.     a.^b        Element-by-element power
  60.     -a        Unary minus (negation)
  61.     +a        Unary plus 
  62.     a'        Matrix transpose (Hermitian transpose)
  63.     a.'        Matrix element-by-element transpose
  64.  
  65.     To see all of the available functions type `what()'. Try using
  66.     some:
  67.  
  68.     > what()
  69.     abs           error         log10         plot3         solve         
  70.     acos          eval          logspace      plprint       sort          
  71.     acosh         exist         lu            plptex        sprintf       
  72.     all           exp           lyap          plscol0       sqrt          
  73.     any           eye           max           plsfile       srand         
  74.     asin          factor        maxi          plstyle       std           
  75.     asinh         fft           mean          plwid         strsplt       
  76.     atan          filter        members       poly          strtod        
  77.     atan2         find          min           printf        subplot       
  78.     atanh         finite        mini          printmat      sum           
  79.     backsub       fix           mod           prod          svd           
  80.     balance       floor         nan           pstart        sylv          
  81.     cd            format        norm          ptitle        symm          
  82.     ceil          fprintf       num2str       putenv        system        
  83.     chol          fread         ode           pwin          tan           
  84.     class         fseek         ones          qr            tanh          
  85.     clear         fvscope       open          rand          tic           
  86.     clearall      getb          pause         rank          tmpnam        
  87.     close         getenv        pclose        rcond         toc           
  88.     compan        getline       pend          read          trace         
  89.     complement    hess          pl3d          readb         tril          
  90.     conj          hilb          plalt         readm         triu          
  91.     cos           ifft          plaspect      real          type          
  92.     cosh          imag          plaxis        redit         union         
  93.     cross         inf           plaz          replot        what          
  94.     cumprod       input         plcont        reshape       who           
  95.     cumsum        int           plegend       round         whos          
  96.     det           int2str       plerry        save          write         
  97.     diag          intersection  plfont        schord        writeb        
  98.     diary         inv           plgrid        schur         writem        
  99.     diff          isempty       plgrid3       set           xlabel        
  100.     disp          isinf         plhist        show          ylabel        
  101.     dlopen        isnan         plhistx       showpwin      zeros         
  102.     dot           issymm        pl